Whack several functions we aren't using.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 18 Jan 2004 01:24:41 +0000 (01:24 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 18 Jan 2004 01:24:41 +0000 (01:24 +0000)
gpsbabel/coldsync/pdb.c
gpsbabel/coldsync/util.c

index 5d3f4922046d05ad320eeb925937caa00fb7c201..e30e725ba5f4c7829f43c83c1b710935fd2cecbf 100644 (file)
@@ -6,7 +6,7 @@
  *     You may distribute this file under the terms of the Artistic
  *     License, as specified in the README file.
  *
- * $Id: pdb.c,v 1.3 2004-01-08 03:15:00 robertl Exp $
+ * $Id: pdb.c,v 1.4 2004-01-18 01:24:41 robertl Exp $
  */
 /* XXX - The way zero-length records are handled is a bit of a kludge. They
  * shouldn't normally exist, with the exception of expunged records. But,
@@ -666,6 +666,7 @@ pdb_Write(const struct pdb *db,
        return 0;               /* Success */
 }
 
+#if 0
 /* pdb_FindRecordByID
  * Find the record in 'db' whose ID is 'id'. Return a pointer to it. If no
  * such record exists, or in case of error, returns NULL.
@@ -777,6 +778,7 @@ pdb_DeleteRecordByID(
        /* Couldn't find it. Oh, well. Call it a success anyway. */
        return 0;
 }
+#endif
 
 /* pdb_AppendRecord
  * Append a new record to 'db's record list. 'newrec' is not copied, so it
@@ -853,6 +855,8 @@ pdb_AppendResource(struct pdb *db,
        return 0;                       /* Success */
 }
 
+#if 0
+
 /* pdb_InsertRecord
  * Insert 'newrec' into 'db', just after 'prev'. If 'prev' is NULL,
  * 'newrec' is inserted at the beginning of the list.
@@ -924,6 +928,7 @@ pdb_InsertResource(struct pdb *db,  /* The database to insert into */
 
        return 0;                       /* Success */
 }
+#endif
 
 /* new_Record
  * Create a new record from the given arguments, and return a pointer to
index 675a683a492c3af946d11978f00d5c98bcecc022..81b6ffd1d9c268b52a5e060da10b85c46331f0de 100644 (file)
@@ -12,7 +12,7 @@
  * native format, convert them to Palm (big-endian) format, and write
  * them to a ubyte string.
  *
- * $Id: util.c,v 1.2 2003-07-28 22:59:01 robertl Exp $
+ * $Id: util.c,v 1.3 2004-01-18 01:24:41 robertl Exp $
  */
 
 #include "config.h"
@@ -224,7 +224,7 @@ time_palmtime2dlp(const udword palmt,
                  struct dlp_time *dlpt)
 {
        struct tm *tm;
-       time_t t;
+time_t t;
 
        /* Convert the Palm time to a Unix time_t */
        t = palmt - EPOCH_1904;